//$Id: MyDataObject.java,v 1.2 2003/08/02 19:20:04 survey Exp $
package org.medbeans.modules.patients;

/*import org.openide.actions.*;
import org.openide.cookies.*;*/
import org.openide.filesystems.FileObject;
import org.openide.loaders.*;
import org.openide.nodes.*;
import org.openide.util.HelpCtx;

/** Represents a My object in the Repository.
 *
 * @author  builder
 */
public class MyDataObject extends MultiDataObject {

    public MyDataObject(FileObject pf, MyDataLoader loader) throws DataObjectExistsException {
        super (pf, loader);
        init ();
    }

    private void init () {
        CookieSet cookies = getCookieSet ();
        // Add whatever capabilities you need, e.g.:
        /*
        cookies.add (new ExecSupport (getPrimaryEntry ()));
        // See Editor Support template in Editor API:
        cookies.add (new MyEditorSupport (this));
        cookies.add (new CompilerSupport.Compile (getPrimaryEntry ()));
        cookies.add (new CompilerSupport.Build (getPrimaryEntry ()));
        cookies.add (new CompilerSupport.Clean (getPrimaryEntry ()));
        cookies.add (new OpenCookie () {
		public void open () {
		    // do something...but usually you want to use OpenSupport instead
		}
	    });
        */
    }

    public HelpCtx getHelpCtx () {
        return HelpCtx.DEFAULT_HELP;
        // If you add context help, change to:
        // return new HelpCtx (MyDataObject.class);
    }

    protected Node createNodeDelegate () {
        return new MyDataNode(this);
    }

    /* If you made an Editor Support you will want to add these methods:

    final void addSaveCookie (SaveCookie save) {
        getCookieSet ().add (save);
    }

    final void removeSaveCookie (SaveCookie save) {
        getCookieSet ().remove (save);
    }

    */

}
